import 'athlete.dart';

class Composition {
  Athlete? athlete;

  Composition({this.athlete});

  factory Composition.fromJson(Map<String, dynamic> json) => Composition(
        athlete: json['Athlete'] == null
            ? null
            : Athlete.fromJson(json['Athlete'] as Map<String, dynamic>),
      );

  Map<String, dynamic> toJson() => {
        'Athlete': athlete?.toJson(),
      };
}
